<?php session_start(); 
	if (isset($_GET["action"]) && ($_GET["action"] == 'logout')) {
		session_destroy();
		$_GET["action"] = "login";
	}
	if (isset($_SESSION["login"])) {
		echo '<meta HTTP-EQUIV="REFRESH" content="0; url=../">';
	}
?>
<?php if(!isset($_GET["action"])) $_GET["action"] = "login"; ?>
<?php include ("controller.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!--

		Absalom Ruiz

		. website | backend | login

		..
		2012 © Kazuu
		www.kazuu.com.ar

		-->
		<title>Piccola | Login</title>
        
		<meta name="robots" content="noindex, notfollow" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<link rel="author" href="http://www.kleith.com.ar/" />
		<!--<link rel="shortcut icon" href="http://www.kleith.com.ar/images/favicon.ico" />
		<link rel="icon" href="http://www.kleith.com.ar/images/favicon.ico" />-->
		<link rel="shortcut icon" href="../content/icon.ico" />
		<link rel="icon" href="../content/icon.ico" />
        
        <link rel="stylesheet" type="text/css" href="css/layout.css" />
        <link rel="stylesheet" type="text/css" href="../css/backend.css" />
        <link rel="stylesheet" type="text/css" href="../css/pro-button.css" />
        
        <script src="js/layout.js" type="text/javascript"></script>
        <script src="../plugins/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
        <script src="js/<?php echo $_GET["action"]; ?>.js" type="text/javascript"></script>
	</head>
	<body>
    	<div id="container">
        	<div id="header">
                <img src="content/header-image.jpg" alt="Pizzería Piccola"  />
            </div>
        	<div id="content">
            <?php include "view/".$_GET["action"].".php"; ?>
            </div>
        </div>
        <div id="footer">
			<a href="http://www.kleith.com.ar/" target="_blank"><span>2012 © </span><!--<img src="../content/kleith-logo.png" alt="Kleith" />--><strong>Kleith</strong></a>
		</div>
	</body>
</html>